Carbon


Attributes Masks

Header: Collections.h

enum {
    noCollectionAttributes = 0,
    allCollectionAttributes = -1,
    userCollectionAttributes = 65535,
    defaultCollectionAttributes = 1073741824
};

Constant descriptions

noCollectionAttributes

Specifies a mask in which all collection attributes are clear. You might use this constant when clearing all the attributes of an item or when testing whether all of an item’s attributes are clear.

allCollectionAttributes

Specifies a mask in which all collection attributes are set. You might use this constant as a mask to indicate that you want to edit or test every attribute of an item, or you might use it to set every attribute of an item.

userCollectionAttributes

Specifies a mask in which the user attributes are set and the reserved attributes are clear. You might use this constant as a mask to indicate that you want to edit or test only the user attributes of an item, or you might use it to set every user attribute of an item.

defaultCollectionAttributes

Specifies a mask in which the persistent attribute is set and all other attributes are clear. You might use this constant when testing to see if an item’s attributes have been edited.

The Collection Manager provides four convenient attributes masks that you can use when specifying attributes for any of the attribute-related Collection Manager functions. You can also use the attribute bit masks as masks for individual attributes.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)